package com.example.edu.coupon;

import com.example.edu.coupon.strategy.MeetMinus;
import com.example.edu.coupon.strategy.impl.MeetMinusQuoteStrategy;

import java.math.BigDecimal;

public class CouponMain {

    public static void main(String[] args) {
        final QuoteContext<MeetMinus> meetMinusQuoteContext = new QuoteContext<MeetMinus>(new MeetMinusQuoteStrategy());
        final BigDecimal bigDecimal = meetMinusQuoteContext.discountAmount(new MeetMinus("1", "1"), new BigDecimal(100));
        System.out.println(bigDecimal);
    }
}
